home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…tion Library 2 (Reseller)
/
Apple R&P Lib Reseller v2.0.iso
/
3-Demos
/
Tutorials
/
Guided Tour Mac II
/
B2
/
B2.rsrc
/
TEXT_1150.txt
< prev
next >
Wrap
Text File
|
1988-03-04
|
372b
|
13 lines
j#macro to detect icon drag
SET &H = MOUSEH
SET &V = MOUSEV
IF NOT STILLDOWN THEN EXIT
IF ABS(mouseH-&H) > 3 THEN SKIP 3
IF ABS(MOUSEV-&V) > 3 THEN SKIP 2
SKIP -3
IF CLICKON = 2 THEN SET SPRITEID[5] = 332
IF CLICKON = 3 THEN SET SPRITEID[5] = 341
IF CLICKON = 4 THEN SET SPRITEID[5] = 333
SET SPRITEH[5] = MOUSEH
SET SPRITEV[5] = MOUSEV
WHEN MOUSEUP THEN CALL B88Àá‚ÅÑ